package dissertation.examples.ejb11.stateless;

import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;

public class HelloBean implements SessionBean {
    public void ejbCreate() throws CreateException {
        System.out.println("ejbCreate()");
    }

    public void setSessionContext(SessionContext sessionContext) throws EJBException {
        System.out.println("setSessionContext()");
    }

    public void ejbRemove() throws EJBException {
        System.out.println("ejbRemove()");
    }

    public void ejbActivate() throws EJBException {
        System.out.println("ejbActivate()");
    }

    public void ejbPassivate() throws EJBException {
        System.out.println("ejbPassivate()");
    }

    @Override
    public String hello() {
        System.out.println("hello()");
        return "Hello World!";
    }
}

